import request from '@/utils/request'
//查询租户套餐列表
export function listTenantPackage(query) {
  return request({
    url: '/system/tenant-package/page',
    method: 'get',
    params: query
  })
}
//新增套餐
export function addTenantPackage(data) {
  return request({
    url: '/system/tenant-package/create',
    method: 'post',
    data: data
  })
}
//套餐修改
export function updateTenantPackage(data) {
  return request({
    url: '/system/tenant-package/update',
    method: 'put',
    data: data
  })
}
//套餐删除
export function deleteTenantPackage(ids) {
  return request({
    url: '/system/tenant-package/' + ids,
    method: 'delete'
  })
}
//套餐详情
export function getTenantPackage(id){
  return request({
    url: '/system/tenant-package/detail/'+id,
    method: 'get'
  })
}
//修改套餐状态
export function changeTenantPackageStatus(query){
  return request({
    url: '/system/tenant-package/change-status',
    method: 'get',
    params: query
  })
}
//获取已启用套餐
export function getPackageByStatus(){
  return request({
    url: '/system/tenant-package/get-package-status',
    method: 'get'
  })
}
